package com.alameda.common.commonpent.event.message;

import org.springframework.context.ApplicationEvent;

/**
 * spring事件监听 事件消息对象
 *
 * @author Lv
 * @date 2025/1/4
 */
public class EventMessage extends ApplicationEvent {
    /**
     * 消息内容
     */
    private String message;

    public EventMessage(Object source, String message) {
        super(source);
        this.message = message;
    }

    /**
     * 获取信息内容
     *
     * @return
     */
    public String getMessage() {
        return message;
    }
}